package controller

import (
	"ez/apps/erp/auto/controller"
	"gitee.com/dreamwood/ez-go/ez"
)

type BuyerCategoryController struct {
	controller.BuyerCategoryAutoController
}

func init() {
	c := &BuyerCategoryController{}
	c.SetRouteParam("/erp", "/admin", "BuyerCategory")
	ez.CreateApi(c.AdminGet(), c.GetAction).SetRouterName("[erp]客户类型_创建")
	ez.CreateApi(c.AdminList(), c.ListAction).SetRouterName("[erp]客户类型_列表")
	ez.CreateApi(c.AdminSave(), c.SaveAction).SetRouterName("[erp]客户类型_保存")
	ez.CreateApi(c.AdminCopy(), c.CopyAction).SetRouterName("[erp]客户类型_复制")
	ez.CreateApi(c.AdminUpdate(), c.UpdateAction).SetRouterName("[erp]客户类型_更新")
	ez.CreateApi(c.AdminChoice(), c.ChoiceAction).SetRouterName("[erp]客户类型_选项")
	ez.CreateApi(c.AdminDelete(), c.DeleteAction).SetRouterName("[erp]客户类型_删除")
	ez.CreateApi(c.AdminUnDelete(), c.UnDeleteAction).SetRouterName("[erp]客户类型_恢复")
	ez.CreateApi(c.AdminDestroy(), c.DestroyAction).SetRouterName("[erp]客户类型_销毁")
	ez.CreateApi(c.AdminUpdateMany(), c.UpdateManyAction).SetRouterName("[erp]客户类型_更新_批量")
	ez.CreateApi(c.AdminDeleteMany(), c.DeleteManyAction).SetRouterName("[erp]客户类型_删除_批量")
	ez.CreateApi(c.AdminDestroyMany(), c.DestroyManyAction).SetRouterName("[erp]客户类型_销毁_批量")
	ez.CreateApi(c.AdminTree(), c.TreeAction).SetRouterName("[erp]客户类型_选项_树形")
}

//func (c BuyerCategoryController) AccessControl(session *ez.Session) { /* 在这里面重构 */ }
//func (c BuyerCategoryController) GetAction(session *ez.Session) { /* 在这里面重构 */ }
//func (c BuyerCategoryController) ListAction(session *ez.Session) { /* 在这里面重构 */ }
